import './App.css';
import { Switch, Route, Redirect } from "react-router-dom"
import Layout from "./views/Layout"
import NotFound from "./views/NotFound"
import PrivateRoute from "./components/PrivateRoute"
import Login from './views/Login';
import Shenpifangkuan from './views/Loaning/Shenpi/Shenpifangkuan';
import Weituofangkuan from './views/Loaning/Chuli/Weituofangkuan';
import Fangkuandengji from './views/Loaning/Chuli/Fangkuandengji'
import Shouxin from './views/Loaning/Shouxin'
import Shenpi from './views/Loaning/Shenpi'
import Hetong from './views/Loaning/Hetong'
import Chuli from './views/Loaning/Chuli'
import Zhongshen from './views/Loaning/Shouxin/Zhongshen'
import { Spin } from 'antd';


import FirstCheck from './views/PreLoan/FirstCheck'
import FirstCheckDetail from './views/PreLoan/FirstCheckDetail'
import Recheck from './views/PreLoan/ReCheck'
import RecheckDetail from './views/PreLoan/ReCheckDetail'





function App() {
  return (
    <div className="App">
      <Switch>
        <Route exact path='/'>
          <Redirect to='/home' />
        </Route>
         {/* <Route path="/home/afterloan" component={AfterLoan}></Route>  */}
        <PrivateRoute path='/home' component={Layout}></PrivateRoute>
        <Route path='/login' component={Login}></Route>
        <Route path="/shenpifangkuan" component={Shenpifangkuan}></Route>
        <Route path="/weituofangkuan" component={Weituofangkuan}></Route>
        <Route path="/fangkuandengji" component={Fangkuandengji}></Route>
        <Route path="/shouxin" component={Shouxin}></Route>
        <Route path="/shenpi" component={Shenpi}></Route>
        <Route path="/hetong" component={Hetong}></Route>
        <Route path="/chuli" component={Chuli}></Route>
        <Route path='/firstCheck' component={FirstCheck} exact>
        </Route>
        <Route path='/firstCheck/detailInfo' component={FirstCheckDetail}>
        </Route>
        <Route path='/recheck' component={Recheck} exact></Route>
        <Route path='/recheck/detailInfo' component={RecheckDetail}></Route>
        <Route>
          <NotFound />
        </Route>
      </Switch>
    </div>
  );
}

export default App;
